package com.sensePlusVR.vlcPlayer;

import java.util.List;
import java.util.Map;

import android.view.Surface;

public interface IPlayer {
	static final int PLAYER_STATE_STOPPED = 0;
	static final int PLAYER_STATE_PLAYING = 1;
	static final int PLAYER_STATE_PAUSED_AUTO = 2; // by system
	static final int PLAYER_STATE_PAUSED_EXPLICIT = 3; // by pause button

	void setCallback(IPlayerCallback cb);

	void setSurface(Surface s);

	void setSubtitleSurface(Surface s);

	void setPlayUrl(String url);

	void setPlayUrlList(Map<String, List<String>> source, String defSource);

	void startPlay();

	void pausePlay(boolean isManual);

	void resumePlay();

	void stopPlay();

	boolean isPlaying();

	void seekDelta(boolean forward);

	boolean canSeek();

	long getCurrentPosition();

	long getTotalPosition();

	boolean isSubtitleExists();
	
	void seekPosition(float position);
	
	int getVideoWidth();
	
	int getVideoHeight();
}
